<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <ul class="nav">
    <li>a</li>
    <li>b</li>
    <li>c</li>
    <li>d</li>
    <li>e</li>
  </ul>
  <script>
    // document.querySelectorAll('css选择器')
    // const skt = document.querySelectorAll('ul li') //获取的是伪数组
    // let newskt = Array.from(skt)  //伪数组转换  Arra.from(需要转换的数组名)

const skt = document.querySelectorAll('ul li')
// 循环
for (let i of skt){
  console.log(i)
}


  </script>
</body>
</html>